-- GENERATED SPELL FOR [Snowfall Elk] --


function spell0_26615(pUnit, Event) --@Puncture,n/a--
pUnit:FullCastSpellOnTarget(15976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26615', 10000, 1)
end

function spell1_26615(pUnit, Event) --@Recently Inoculated,Self--
pUnit:FullCastSpellOnTarget(47675,pUnit)
pUnit:RegisterEvent('Sorts_26615', 607, 1)
end

function Sorts_26615(pUnit, Event)
local choix_sorts_26615 = math.random(0, 1)
if choix_sorts_26615 == 0 then
pUnit:RegisterEvent('spell0_26615', 1, 1)
end
if choix_sorts_26615 == 1 then
pUnit:RegisterEvent('spell1_26615', 1, 1)
end
end

function mob26615_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26615', math.random(1500, 3000), 1)
end

function mob26615_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26615_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26615_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26615, 1, 'mob26615_Action')
RegisterUnitEvent(26615, 2, 'mob26615_Leave')
RegisterUnitEvent(26615, 3, 'mob26615_Kill')
RegisterUnitEvent(26615, 4, 'mob26615_Die')
